package com.swt.testdemo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.swt.testdemo.entity.SysLogEntity;
import com.swt.testdemo.vo.SysLogRateVO;
import com.swt.testdemo.vo.SysLogVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/12 11:05
 **/
@Mapper
@Repository
public interface SysLogDao extends BaseMapper<SysLogEntity> {

    IPage<SysLogVO> queryLog(Page<SysLogVO> entityPage, @Param("userIdFilter") Integer userIdFilter, @Param("operationFilter") String operationFilter);

    IPage<SysLogRateVO> queryLogRate(Page<SysLogRateVO> entityPage, @Param("startTime") String startTime);

}
